﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<% String basepath = request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>打印职位申请表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>

    <link href="<%=basepath%>/resources/js/plugins/TreeTable/css/jquery.treeTable.css" rel="stylesheet"
          type="text/css"/>
    <link href="<%=basepath%>/resources/css/index.css" rel="stylesheet" type="text/css"/>
    <script src="<%=basepath%>/resources/js/jquery-1.9.1.min.js" type="text/javascript"></script>
    <style>
        .treeTable {
            border: solid 1px #000;
            border-top: none;
        }

        .treeTable tbody tr td {
            border: 1px solid #000 !important;
            padding: 8px 0px 8px 5px !important;
            color: #000 !important;
            background: #FFF !important;
        }

        .printmenu {
            text-align: right;
        }

        .printmenu button {
            border: none;
            background: orange;
            padding: 5px;
            color: #FFF;
        }

        .printmenu button:hover {
            background: #FF8000;
        }

        body {
            background: none !important;
            font-family: "宋体" !important;
            font-size: 18px;
        }

        #allpage {
            background: none !important;
        }

        .resumetitle {
            padding: 10px !important;
            height: auto !important;
            text-align: center !important;
            background: #DDD !important;
            color: #000 !important;
            font-weight: bold;
            letter-spacing: 2px;
            border: 1px solid #000;
            border-bottom: none;
            border-top: none;
        }

        .inputform tbody tr td {
            letter-spacing: 0px !important;
        }

        #content{
            width: 980px;
            margin: 0px auto;
        }
    </style>
</head>
<body onload="initView()">
<div id="loader"><img alt="" src="<%=basepath%>/resources/image/1d_2.gif"/></div>
<div id="allpage">
    <div id="main">
        <div id="content">
            <div class="printmenu">
                <button type="button" onclick="PrintFunc()">打印职位申请表</button>
            </div>
            <div class="right pagecont" style="width:980px; padding:0 0 50px 0;">
                <div style="font-size:30px;font-family:'黑体';font-weight:bold;padding:20px;text-align:center;letter-spacing:2px;">
                    重庆市轨道交通(集团)有限公司应聘职位申请表
                </div>
                <div>
                    <span style="display: block; width: 20%;text-align: left;float: left;padding: 8px;">简历编号:${resume.code }</span>
                    <span style="display: block; width: 55%;text-align: center;float: left;padding: 8px;">应聘岗位:${resume.jname }</span>
                    <span style="display: block; width: 20%;text-align: right;float: left;padding: 8px;">应聘时间:${resume.addDate }</span>
                </div>
                <table class="treeTable inputform">
                    <tbody>
                    <%--<tr>
                        <td>编号：</td>
                        <td>${resume.code}</td>
                        <td>应聘职位：</td>
                        <td colspan="3">${resume.jname}</td>
                        <td>应聘时间：</td>
                        <td colspan="2"><fmt:formatDate value="${resume.addDate}" pattern="yyyy年MM月dd日"/></td>
                    </tr>--%>
                    <tr>
                        <td width="90">姓名：</td>
                        <td width="120">${resume.name}</td>
                        <td width="90">性别：</td>
                        <td width="140">${resume.sexname}</td>
                        <td width="90">出生年月：</td>
                        <td width="110"><fmt:formatDate value="${resume.birthday}" pattern="yyyy年MM月"/></td>
                        <td width="90">身高：</td>
                        <td width="60">${resume.height} cm</td>
                        <td rowspan="4">
                            <img width="130" height="182" src="${fpath}/${resume.head}"/>
                        </td>
                    </tr>
                    <tr>
                        <td>籍贯：</td>
                        <td>${resume.jg}</td>
                        <td>政治面貌：</td>
                        <td>${resume.zzmmname}</td>
                        <td>婚否：</td>
                        <td colspan="3">${resume.mname}</td>
                    </tr>
                    <tr>
                        <td>最高学历：</td>
                        <td>${resume.educationname}</td>
                        <td>学校：</td>
                        <td>${resume.university}</td>
                        <td>专业：</td>
                        <td colspan="3">${resume.majorname}</td>
                    </tr>
                    <tr>
                        <td>技术职称：</td>
                        <td>${resume.postlevelname}</td>
                        <td>职称种类：</td>
                        <td>${resume.posttypename}</td>
                        <td>职称时间：</td>
                        <td colspan="3"><fmt:formatDate value="${resume.postgettime}" pattern="yyyy年MM月dd日"/></td>
                    </tr>
                    <tr>
                        <td>要求薪酬：</td>
                        <td colspan="3">${resume.expectedsalaryamount}</td>
                        <td>现住址：</td>
                        <td colspan="4">${resume.nowaddress}</td>
                    </tr>
                    <tr>
                        <td>身份证号：</td>
                        <td colspan="3">${resume.cardno}</td>
                        <td>联系方式：</td>
                        <td colspan="4">${resume.tel}</td>
                    </tr>
                    <tr>
                        <td>如受聘，何时可上班：</td>
                        <td colspan="3">${resume.attendancetime}</td>
                        <td colspan="2">应聘职位不能录取，可否调整其它专业：</td>
                        <td colspan="3">
                            <select name="userresume.distribution">
                                <option value="0">是</option>
                                <option value="1">否</option>
                            </select>
                            <input type="hidden" value="${resume.distribution}"/>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <div class="resumetitle">学 历 情 况</div>
                <table class="treeTable inputform">
                    <tbody>
                    <tr>
                        <td width="130">入学时间</td>
                        <td width="130">毕业时间</td>
                        <td>学校（院校）</td>
                        <td width="100">学历</td>
                        <td>专业</td>
                        <td width="110">学习形式</td>
                        <td width="110">毕业证/结业证</td>
                    </tr>
                    <c:forEach var="edu" items="${edus}">
                        <tr>
                            <td><fmt:formatDate value="${edu.starttime}" pattern="yyyy年MM月dd日"/></td>
                            <td><fmt:formatDate value="${edu.endtime}" pattern="yyyy年MM月dd日"/></td>
                            <td>${edu.schoolname}</td>
                            <td>${edu.educationname}</td>
                            <td>${edu.majorname}</td>
                            <td>${edu.fulltime}</td>
                            <td>${edu.tname}</td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
                <div class="resumetitle">专业培训情况</div>
                <table class="treeTable inputform">
                    <tbody>
                    <tr>
                        <td width="130">起始时间</td>
                        <td width="130">终止时间</td>
                        <td>培训单位</td>
                        <td>专业</td>
                        <td width="120">培训证/上岗证</td>
                    </tr>
                    <c:forEach var="tra" items="${tras}">
                        <tr>
                            <td><fmt:formatDate value="${tra.starttime}" pattern="yyyy年MM月dd日"/></td>
                            <td><fmt:formatDate value="${tra.endtime}" pattern="yyyy年MM月dd日"/></td>
                            <td>${tra.organization}</td>
                            <td>${tra.course}</td>
                            <td>${tra.certificate}</td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
                <div class="resumetitle">工 作 经 历</div>
                <table class="treeTable inputform">
                    <tbody>
                    <tr>
                        <td width="130">在职日期</td>
                        <td width="360">公司概况</td>
                        <td width="100">收入</td>
                        <td>离职原因</td>
                    </tr>
                    <c:forEach var="work" items="${works}">
                        <tr>
                            <td>
                               <%-- <fmt:formatDate value="${work.starttime}" pattern="yyyy年MM月dd日"/>--%>
                                   ${work.starttime} <br/>至<br/> ${work.endtime}
                               <%-- <fmt:formatDate value="${work.endtime}" pattern="yyyy年MM月dd日"/>--%>
                            </td>
                            <td>
                                公司名称：${work.companyname}<br/>
                                工作岗位：${work.position}<br/>
                                工作内容：${work.jobduties}
                            </td>
                            <td>${work.salary}</td>
                            <td>${work.reason}</td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function PrintFunc() {
        $('.printmenu').hide();
        $('#pmenu').hide();
        $('#footer').hide();
        $('#banner').hide();
        $('#allpage').css("background", "none");
        $('body').css("background", "none");
        $('.resumetitle').css("background-color", "#ddd");
        $('.resumetitle').css("color", "#000");
        window.print();
        location.reload();
    }

    function initView() {
        setTimeout(function () {
            $('#loader').hide();
        }, 200);
    }

    $(function () {
        $('select').each(function () {
            $(this).val($(this).next().val());
            $(this).parent().html($(this).find("option:selected").text());
        });
    });
</script>
</body>
</html>